package com.bub.pay.framework.redis.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class EmailModel implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -7338085140632841676L;

    private String address;
    private Map<String, String> data;
    private String templateId;

    public EmailModel() {
    }

    public EmailModel(String address, String templateId) {
        this.address = address;
        this.data = new HashMap<>();
        this.templateId = templateId;
    }

    /**
     * 往data存数据
     * @param key key
     * @param value 值
     */
    public void putData(String key, String value) {
        data.put(key, value);
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

}
